<?php
require 'connect.php';

$result = mysqli_query($link,"SELECT * FROM menu_items");

while($row = mysqli_fetch_array($result))
  {
		if($row['visible']==1)
	  {
		  /*echo $row['id'] . " " . $row['name'];*/
		  echo "<a href='".$row['linked_page']."'>".$row['name']."</a>";
		  echo "<br>";
	  }
  }
require 'disconnect.php';
?>